package com.zhanghe.study.design_pattern.command_pattern;

/**
 * @author zh
 * @date 2022/10/13 15:32
 */
public class Invoker {

    private Command command;

    public Command getCommand() {
        return command;
    }

    public void setCommand(Command command) {
        this.command = command;
    }

    public void runCommand(){
        command.execute();
    }
}
